const express = require('express')
const router = express.Router()
const { canAccess, checkLogin, sendRole } = require('./auth.func')

router.get('/access', canAccess)
router.post('/login', checkLogin)
router.get('/role/:token', sendRole)

module.exports = router
